﻿<c:BaseControl x:Class="personalplaner.gui.settings.views.SettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:v="clr-namespace:personalplaner.gui.settings.views"
             xmlns:c="clr-namespace:personalplaner.common.controls;assembly=personalplaner.common"
             xmlns:p="clr-namespace:personalplaner.gui.Properties"
             xmlns:vm="clr-namespace:personalplaner.common.mvvm.factory;assembly=personalplaner.common"
             xmlns:fac="clr-namespace:personalplaner.gui.settings.viewmodels.factories"
             vm:ViewModelLoader.FactoryType="{x:Type fac:SettingsModelFactory}"
             Foreground="#E1000000">

    <Control.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/personalplaner.common;component/resources/TabControlStyles.xaml"/>
                <ResourceDictionary Source="/personalplaner.common;component/resources/styles/WhiteStyleTemplates.xaml"/> 
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Control.Resources>
    
    <Grid Margin="0,0,30,0">

        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>


        <TabControl Grid.Column="1" Margin="5,5,5,0" Style="{StaticResource SettingsTransparentTabControl}" ItemContainerStyle="{StaticResource SettingsTransparentMenuTabItem}">
            <TabItem Header="{x:Static p:Resources.Dienstplan}">
                <TabControl Grid.Column="1" Margin="5,5,5,0" Style="{StaticResource SmallVeritcalTransparentTabControl}" ItemContainerStyle="{StaticResource SmallVeritcalTransparentMenuTabItem}">
                    <TabItem Header="{x:Static p:Resources.Anzeige}">
                        <v:DisplaySettingsView/>
                    </TabItem>
                    <TabItem Header="{x:Static p:Resources.Ablaufe}" Visibility="Collapsed">
                        <v:AblaufSettingsView/>
                    </TabItem>
                    <TabItem Header="{x:Static p:Resources.Arbeitszeiten}">
                        <v:WorkTimesSettingsView/>
                    </TabItem>
                    <TabItem Header="{x:Static p:Resources.Drucken}">
                        <v:PrintingSettingsView />
                    </TabItem>
                </TabControl>
            </TabItem>
            <TabItem Header="{x:Static p:Resources.Personuebersicht}">
                <TabControl Grid.Column="1" Margin="5,5,5,0" Style="{StaticResource SmallVeritcalTransparentTabControl}" ItemContainerStyle="{StaticResource SmallVeritcalTransparentMenuTabItem}">
                    <TabItem Header="{x:Static p:Resources.Personuebersicht}">
                        <v:PersonOverviewSettingsView/>
                    </TabItem>
                </TabControl>
            </TabItem>
            <TabItem Header="{x:Static p:Resources.Stammdaten}">
                <TabControl Grid.Column="1" Margin="5,5,5,0" Style="{StaticResource SmallVeritcalTransparentTabControl}" ItemContainerStyle="{StaticResource SmallVeritcalTransparentMenuTabItem}">
                    <TabItem Header="{x:Static p:Resources.General}">
                        <v:BaseDataSettingsView/>
                    </TabItem>
                </TabControl>
            </TabItem>
            <TabItem Header="{x:Static p:Resources.AllgemeineEinstellungen}">
                <TabControl Grid.Column="1" Margin="5,5,5,0" Style="{StaticResource SmallVeritcalTransparentTabControl}" ItemContainerStyle="{StaticResource SmallVeritcalTransparentMenuTabItem}">
                    <TabItem Header="{x:Static p:Resources.KontoEinstellungen}">
                        <v:AccountSettings/>
                    </TabItem>
                    <TabItem Header="{x:Static p:Resources.BasisDaten}">
                        <v:GeneralSettingsView/>
                    </TabItem>
                </TabControl>
            </TabItem>
        </TabControl>

    </Grid>
</c:BaseControl>
